사이트 내 전체검색
[우분투 8.04] 글꼴 변경하기(맑은고딕)
로빈아빠
https://cmd.kr/server/550 URL이 복사되었습니다.

본문

[우분투 8.04] 글꼴 변경하기(맑은고딕)

 이번에도 우려먹기 글이다. ㅎㅎ 뭐~ 8.04로 오면서 약간 변경된 사항도 있긴 하다.

 우분투의 기본 글꼴은 sans-serif(이 글꼴이 실제로 존재하는 것은 아니고 지정된 글꼴을 링크하고 있는 형식이라고 생각하면 된다. 기본적으로는 은돋움에 연결되어 있다) 인데 처음 우분투를 접하는 사람에게는 뭔가 흐릿해 보이는 것이 가독성이 현저히 떨어진다. 그럴 경우 보통 윈도우 XP에서 쓰는 굴림 이나 윈도우 비스타에서 쓰는 맑은고딕 을 처음 우분투를 접하는 사람에게 권장하고 있다. 그외에도 괜찮은 글꼴이 많으니 이 포스트를 보고 다른 글꼴도 적용해 본 후 선택하기 바란다. 여기에서는 내가 현재 쓰고 있는 맑은고딕체 위주로 설명할 것이다.

1. 맑은고딕체는 알아서 구하기 바란다. 저작권이 걸려 있는 글꼴이라서...ㅡㅡ;

2. 만약 구해온 맑은고딕체가 rar로 압축되어 있다면 unrar 패키지를 설치해서 압축을 풀어 준다.
sudo apt-get install unrar
3. 압축을 푼 malgun.ttf 파일을 아래 폴더로 이동 또는 복사한다.
/usr/share/fonts/truetype
4. 폰트 정보를 갱신한다.
fc-cache -f -v
5. 시스템 > 기본 설정 > 모양새 > 글꼴 탭으로 이동해서 글꼴을 적용한다.


6. 자세히... 로 들어가서 각자 취향에 맞게 설정한다.


7. 이렇게 해도 글꼴이 깨져 보이는 경우가 있을 것이다. 이것은 한글 글꼴의 AutohintAntialias가 꺼져 있어서 그렇다. 이것을 켜주려면 터미널에서 아래 명령어를 입력한다.
sudo gedit /etc/fonts/conf.d/29-language-selector-ko-kr.conf
8. 나오는 텍스트 편집기에서 아래 붉은 색으로 되어 있는 false를 true로 바꿔주면 된다.
<!-- Turn off antialias and autohint for Korean fonts depending on pixelsize -->
<match target="font">
        <test name="lang" compare="contains">
                <string>ko</string>
        </test>
        <test name="pixelsize" compare="more">
        <int>10</int>
    </test>
        <test name="pixelsize" compare="less">
        <int>22</int>
    </test>
        <edit name="antialias" mode="assign">
        <bool>false</bool>
    </edit>
        <edit name="autohint" mode="assign">
        <bool>false</bool>
    </edit>
        <edit name="hintstyle" mode="assign">
        <const>hintmedium</const>
    </edit>
</match>
<!-- Turn off antialias and autohint for ttf-alee depending on pixelsize -->
<match target="font">
        <test name="family">
                <string>Guseul</string>
        </test>
        <edit name="autohint" mode="assign">
        <bool>true</bool>
    </edit>
</match>
<match target="font">
        <test name="family">
                <string>Guseul</string>
                <string>Guseul Mono</string>
        </test>
    <test name="pixelsize" compare="more">
        <int>11</int>
    </test>
    <test name="pixelsize" compare="less">
        <int>16</int>
    </test>
    <edit name="antialias" mode="assign">
        <bool>false</bool>
    </edit>
        <edit name="autohint" mode="assign">
        <bool>false</bool>
    </edit>
</match>
9. 이제 재부팅하고 나면 마음에 드는 글꼴을 확인할 수 있을 것이다. ^^


+ 위에서 우분투의 기본글꼴인 sans-serif은돋움에 연결되어 있다고 했다. 즉, 우분투의 기본글꼴은 은돋움이라고 할 수 있는데 이것을 다른 글꼴로 바꾸고 싶다면 아래 붉은 부분을 바꿔 주면 된다. serifmonospace 등도 이런 식으로 적용하면 된다.
sudo gedit /etc/fonts/conf.d/69-language-selector-ko-kr.conf

<!-- Set preferred Korean fonts -->
    <match target="pattern">
        <test qual="any" name="family">
            <string>serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>UnBatang</string>
        </edit>
    </match>
    <match target="pattern">
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>UnDotum</string>
            <string>Guseul</string>
        </edit>
    </match>
    <match target="pattern">
        <test qual="any" name="family">
            <string>monospace</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>UnDotum</string>
            <string>Guseul</string>
        </edit>
    </match>

※ 관련링크 : [우분투 7.10] "맑은 고딕"체 적용하기

이 글과 관련있는 글을 자동검색한 결과입니다 [?]

st_e.php?e=1&b=zodiac12k&s=1828667

by 조디악 | 2008/06/30 13:44 | 우분투 | 트랙백(2) | 덧글(7)

Tracked from yesarang's m.. at 2008/07/31 15:01

제목 : 김윤수의 생각
Ubuntu 8.04에서 맑은 고딕 사용하기: 오늘 집에 가서 적용해야쥐~ 룰루 랄라...more

Tracked from 김윤수의 이상계를 꿈꾸며 at 2008/07/31 21:43

제목 : Ubuntu 8.04에 맑은 고딕 글꼴 적용하기
그 동안 우분투에 기본으로 딸려 오는 은돋움 글꼴이 별로 가독성이 좋지 않아 바꿀 수 없나 고민하던 차에 우연찮게 윈도우의 맑은 고딕 글꼴을 적용하는 방법을 발견하여 바로 적용했습니다. 다음 글대로 따라하시면 됩니다. [우분투 8.04] 글꼴 변경하기(맑은고딕) 그런데 7번째 단계에서 제 시스템에서는 약간 디렉토리가 다르더군요. sudo gedit /etc/fonts/conf.d/29-language-selector-ko-kr.conf 디렉토리......more

Commented by 떠돌이 at 2008/06/30 17:26 icon_reply.gif
전 개인적으로 비스타의 맑은 고딕보다 은돋움이 더 예쁘고 가독성이 좋은 것 같습니다. 근데 또 은돋움이 윈도로 가면 가독성이 안좋아지죠.ㅋㅋ 어쨌든 우분투엔 은돋움+_+ 음돋움을 사랑합시다..
icon_depth.gif Commented by 조디악 at 2008/06/30 17:38
전 은돋움이 흐릿흐릿해서 다른 건 괜찮은데 웹브라우저에서 글 좀 읽을려고 하면 눈 아파서 못 보겠더군요. ㅎㅎ 윈도우에서 사용하던 글꼴을 사용하는 것보다 우분투 고유의 글꼴을 사용하는 게 맞긴 하지만 그래도 눈 아픈 건 어쩔 수 없네요~ ^^;
Commented by 똘이대마왕 at 2008/07/03 10:15 icon_delete.gif icon_reply.gif
저는 조선일보는 싫어하지만 그 글꼴 하나만큼은 대단하다 여깁니다.
우분투 기본글꼴및 파이어폭스 기본 글꼴로 조선일보명조체를 이용하는데
무료로 배포한 글꼴이며 가독성이 역시 신문사 글씨체라 높습니다. 한자 글꼴역시 만들어둬서 매우
괜찮은 글꼴이라 생각됩니다.
Commented by 정의의소 at 2008/07/03 20:30 icon_delete.gif icon_reply.gif
7번에 오타 있습니다. "-" 빠졌습니다.
sudo gedit /etc/fonts/conf.d/29-language-selector-ko-kr.conf

icon_depth.gif Commented by 조디악 at 2008/07/04 08:42
지적 감사합니다^^
Commented by 김윤수 at 2008/07/31 21:43 icon_delete.gif icon_reply.gif
왜 제 Ubuntu 에서는 conf.d 가 아니라 conf.avail 이죠 ? 아무튼 덕분에 Ubuntu에서 깔끔한 맑은 고딕 쓰고 있습니다. 윈도우로 돌아가고 싶은 마음이 별로 안드네요 ^^ 트랙백 겁니다.
icon_depth.gif Commented by 조디악 at 2008/08/01 12:53
conf.d 에 있는 파일들이 conf.avail 에 있는 파일에 링크로 되어있는 형식이죠. 정확하게는 conf.avail에 있는 파일이 수정됩니다^^
※ 이 포스트는 더 이상 덧글을 남길 수 없습니다.

댓글목록

등록된 댓글이 없습니다.

1,139 (7/23P)

Search

Copyright © Cmd 명령어 18.224.251.136